home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / YICONS23.ZIP;1 / INCLUDE / YAKPAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-23  |  741 b   |  24 lines

  1. #ifndef YAKPAL.H
  2.  
  3. #define YAKPAL.H
  4. #include "stddefs.h"
  5. #include "yaklib.h"
  6. class yakPalette
  7. {
  8. public:
  9.   byte far paletteData[768];
  10.   enum direction {down, up};
  11.   yakPalette(void) {};
  12.   void load(char *filename, yakLib * myYakLib = NULL);
  13.   void loadDM256(char * filename);
  14.   void save(char *filename);
  15.   void get(word startColor = 0, word numColors = 256);
  16.   void put(word startColor = 0, word numColors = 256);
  17.   yakPalette(char * filename, yakLib * myYakLib = NULL)
  18.     {load(filename, myYakLib);};
  19.   void rotate(direction myDirection, word startColor = 0, word numColors = 256);
  20.   void setColor(byte color, byte r, byte g, byte b);
  21.   void fade(char intensity, word startColor = 0, word numColors = 256);
  22. };
  23. #endif
  24.